home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
8_3.lha
/
8_3
/
tstfile.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
558b
|
33 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
include <string.h>
/#define __cplusplus
include "8_3_validfn.c"
include "8_3_file.c"
/ copy a stream of files
include <error.h>
ain(int, char**)
for (;;)
{
char buf[1024];
char *a = buf;
if (!read_filename(cout, cin, &a))
break;
cout << a << "\n";
if (!cout)
break;
}
if (!cin.eof())
error("error reading input");
if (cout.bad())
error("error writing output");
return 0;